{include file="public/head"}
<body>
    <div class="layui-card layadmin-header">
        {$breadcrumb|raw}
    </div>
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">{$title|default=''}</div>
                    <div class="layui-card-body">
                        <form action="{:url('')}" class="layui-form" lay-filter="edit-form" method="post">
                            <div class="layui-form-item">
                                <label class="layui-form-label">权限组名称</label>
                                <div class="layui-input-block">
                                    <input type="text" name="post[name]" lay-verify="required" value="{$info.name|default=''}" autocomplete="off" placeholder="请输入权限组名称" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">描述</label>
                                <div class="layui-input-block">
                                    <textarea name="post[describe]" placeholder="请输入描述内容" class="layui-textarea">{$info.describe|default=''}</textarea>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">权限节点</label>
                                <div class="layui-input-block">
                                    <div id="auth_tree"></div>
                                    <script>
                                        var tree_list = JSON.parse('{:json_encode($tree_list)}');
                                    </script>
                                </div>
                            </div>
                            <input type="hidden" name="post[id]" value="{$info.id|default=0}">
                            <input type="hidden" name="post[module]" value="admin">
                            <div class="layui-form-item layui-layout-admin">
                                <div class="layui-input-block">
                                    <div class="layui-footer" style="left: 0;">
                                        <button class="layui-btn" lay-submit="" lay-filter="submit-form">立即提交</button>
                                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    {include file="public/script"}
</body>
</html>